package com.libing.entity;

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by WY on 2018/2/4.
 */

@Component
public class Company {

    // 公司ID
    private Long id;
    // 公司名称
    private String name;
    // 邮箱
    private String email;
    // 地址
    private String address;
    // 网址
    private String net;
    // 注册资金
    private Integer regCap;
    // 客户需求
    private String need;
    // 企业性质
    private String nature;
    // 企业积分
    private Integer score;
    // 备注
    private String remarks;
    // 记录索引
    private String indexes;
    // 发票ID
    private Long invoiceId;
    // 创建时间
    private Date createTime;
    // 创建人ID
    private Long createId;
    // 创建人
    private String createName;
    // 是否有效
    private Integer isEnable;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getNet() {
        return net;
    }

    public void setNet(String net) {
        this.net = net;
    }

    public Integer getRegCap() {
        return regCap;
    }

    public void setRegCap(Integer regCap) {
        this.regCap = regCap;
    }

    public String getNeed() {
        return need;
    }

    public void setNeed(String need) {
        this.need = need;
    }

    public String getNature() {
        return nature;
    }

    public void setNature(String nature) {
        this.nature = nature;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Long getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(Long invoiceId) {
        this.invoiceId = invoiceId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getIndexes() {
        return indexes;
    }

    public void setIndexes(String indexes) {
        this.indexes = indexes;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Company company = (Company) o;

        return name != null ? name.equals(company.name) : company.name == null;
    }

    @Override
    public int hashCode() {
        return name != null ? name.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "Company{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", net='" + net + '\'' +
                ", regCap=" + regCap +
                ", need='" + need + '\'' +
                ", nature='" + nature + '\'' +
                ", score=" + score +
                ", remarks='" + remarks + '\'' +
                ", indexes='" + indexes + '\'' +
                ", invoiceId=" + invoiceId +
                ", createTime=" + createTime +
                ", createId=" + createId +
                ", createName='" + createName + '\'' +
                ", isEnable=" + isEnable +
                '}';
    }
}
